import request from '@/utils/request'

// 社群老师列表
export function getTeacher() {
    return request({
        url: '/flow_control/getOperationWechatList',
        method: 'get',
    })
}

// 路径列表
export function getCategory() {
    return request({
        url: '/flow_control/getOperationCategoryList',
        method: 'get',
    })
}

// 新增销售老师
export function addUser(data) {
    return request({
        url: '/sale/addUser',
        method: 'post',
        data: data
    })
}

// 订单列表
export function getList(data) {
    return request({
        url: '/flow_control/getList',
        method: 'post',
        data: data
    })
}

// 计量更新
export function updateFlowMax(data) {
    return request({
        url: '/flow_control/updateFlowMax',
        method: 'post',
        data: data
    })
}

// 老师状态更新
export function updateTeacher(data) {
    return request({
        url: '/flow_control/changeProjectLineStatus',
        method: 'post',
        data: data
    })
}

// 消息状态更新
export function updateMessage(data) {
    return request({
        url: '/flow_control/changeMessageStatus',
        method: 'post',
        data: data
    })
}

// 设置备选老师
export function updateReserve(data) {
    return request({
        url: '/flow_control/changeReserveStatus',
        method: 'post',
        data: data
    })
}
export function getProject(data) {
    return request({
        url: '/media/project/getOptionList',
        method: 'post',
        data: data
    })
}